Search results
42 packages found
Babel plugin to replace extension of file name written in import statement and dynamic import
Babel plugin to replace extension of file name written in import statement and dynamic import
Babel plugin to replace extension of file name written in import statement and dynamic import
The module has JS functions to check all imports or required modules and check if the file is a ES Module or a CJS/ JS Module or Script
- require
- cache
- uncache
- uncached
- module
- fresh
- fetch
- all
- imports
- requires
- es imports
- cjs import
- cjs require
- mjs import
- View more
Import .ts, .mjs, .cjs files across environments as JavaScript modules
A solution to import files on the module and commonjs at the same time
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
- __dirname
- __filename
- commonjs
- deno
- deno-edition
- deno-entry
- denoland
- directory
- dirname
- ecmascript
- es2022
- es5
- esm
- export-default
- View more
The module has JS functions to check all imports or required modules and check if the file is a ES Module or a CJS/ JS Module or Script
- require
- cache
- uncache
- uncached
- module
- fresh
- fetch
- all
- imports
- requires
- es imports
- cjs import
- cjs require
- mjs import
- View more
provides native ESM import and globals mocking for unit tests
Shim for `import.meta.resolve`
Access to __filename and __dirname within ECMAScript modules
A library to fix the default import interoperability issue in Node.js
Simple (very) polyfill to emulate mocha tests in mjs environment. For use simply import
Async image-size, faster and lighter than the original
Add .js extension to each relative ESM import and export statement in JavaScript file
Simple (very) polyfill to emulate mocha tests in mjs enviroment. For use simply import
cli to rename file extensions and rewrite imports for commonjs (cjs) and esm after typescript build
Allow importing of named exports from default-exporting (CJS/JSON) modules
Simple (very) polyfill to emulate mocha tests in mjs enviroment. For use simply import
A babel plugin to fix the default import interoperability issue in Node.js